Use null for clarity
authorJeremy Bryant <jb@jeremybryant.net>
Thu, 4 Apr 2024 10:18:57 +0000 (11:18 +0100)
committerJustin Burkett <justin@burkett.cc>
Tue, 9 Apr 2024 17:52:25 +0000 (13:52 -0400)
* which-key.el (which-key--show-evil-operator-keymap): Use null for
clarity of zero length.

which-key.el

index 8c6d4236b1d9890f27f1857872808d91f7d9da92..0c38a1a1bc8a378aaa1045b909422f921464e232 100644 (file)
@@ -2659,7 +2659,7 @@ KEYMAP is selected interactively by mode in
         (let ((formatted-keys
                (which-key--get-bindings
                 nil keymap #'which-key--evil-operator-filter)))
-          (cond ((= (length formatted-keys) 0)
+          (cond ((null formatted-keys)
                  (message "which-key: Keymap empty"))
                 ((listp which-key-side-window-location)
                  (setq which-key--last-try-2-loc